/*
* @Author: Administrator
* @Date:   2017-10-31 15:21:01
* @Last Modified by:   Administrator
* @Last Modified time: 2018-01-08 15:11:13
*/
import { post } from './fetch'
import { host } from '../util/costant';

// 发表文章
export default function updateArticle(id, params, header) {
  const url = `${host}/posts/${id}`;
  const res = post(url, params, header)
  return res;
}
